package com.tiancheng.trade.order.service;

import com.tiancheng.trade.order.model.Order;
import com.tiancheng.trade.order.model.OrderBatch;
import com.tiancheng.trade.order.vo.api.OrderBatchVO;

import java.util.List;

/**
 * @Author: likailun
 * @Description:
 * @Date: create in 2023/5/30 15:01
 */
public interface OrderBatchService {
    void saveOrderBatch(OrderBatchVO orderBatchVO, List<Order> orders);

    /**
     * 关闭批次号
     * @param uid 用户id
     * @param batchId 批次id
     * @return
     */
    boolean close(String uid, String batchId);

    OrderBatch findByBatchId(String batchId);

    void updatePayStatusByBatchId(OrderBatch orderBatch,String batchId);
}
